Precision of time types - Mailing list pgsql-novice

From Wolfgang Keller
Subject Precision of time types
Date
Msg-id 988223449A3F5A0D4A67CE35@[192.168.1.25]
Whole thread Raw
Responses Re: Precision of time types  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-novice
Hello,

and yet another clueless newbie question:

The precision of time types is specified as follows in the
documentation:

"For the time types, the allowed range of p is from 0 to 6 when
eight-byte integer storage is used, or from 0 to 10 when floating-point
storage is used."

When/how is the internal storage method determined?

Compile-time option?
Database-initialisation time option?
Other?

Unfortunately, the schema I am trying to implement using PostgreSQL
specifies 9 digits (nanosecond precision) for its custom datetime
column (don't ask me why, I'M just a poor mech eng).

So, do I need to use a numeric type for the seconds and define my own
composite datetime column or can I use a properly parameterized
built-in time type of PostgreSQL?

TIA,

Sincerely,

Wolfgang Keller


pgsql-novice by date:

Previous
From: Wolfgang Keller
Date:
Subject: Composite types for composite primary/foreign keys?
Next
From: gokul@appshub.com
Date:
Subject: Re: postgresql 8.1.10-1PGDG (32 bit) installaion on RHEL 4